package com.project.nimsen.weixin.bean;

import org.apache.commons.lang3.StringUtils;
import org.dom4j.Element;

/**
 * 接收视频信息类
 * */
public class ThumbRMsg extends BaseResourceRMsg {
	private String thumbMediaId;//视频缩略图媒体id

	public String getThumbMediaId() {
		return thumbMediaId;
	}

	public void setThumbMediaId(String thumbMediaId) {
		this.thumbMediaId = thumbMediaId;
	}

	protected String info() {
		StringBuffer info = new StringBuffer(super.info());
		info.append("<ThumbMediaId><![CDATA[").append(this.getThumbMediaId()).append("]]></ThumbMediaId>");
		return info.toString();
	}

	protected void fullchildProperty(Element root) {
		super.fullchildProperty(root);
		String str_thumb = root.elementText("ThumbMediaId");
		if(StringUtils.isNotBlank(str_thumb))
			this.setThumbMediaId(str_thumb);
	}
}
